<div ng-controller="AdminHrReportCtrl as vm">
	<h3>HR Related Report Export</h3>
	<form class="form-inline">
            <div class="form-group">
                <select class="form-control" ng-options="div for div in years track by div" ng-model="vm.year" ng-change="vm.regionChange()">
                </select>
            </div>
            <div ng-if="role!='GC People Admin'" class="form-group">
                <select class="form-control" ng-options="div for div in months track by div" ng-model="vm.month" ng-change="vm.regionChange()">
                </select>
            </div>
            <div ng-if="role!='GC People Admin'" class="form-group">
                <select class="form-control" ng-options="div.name for div in regions track by div.id" ng-model="vm.region" ng-change="vm.regionChange()">
                    <option ng-if="role!='Sub-Region Admin'" value="">--- Sub-Region ---</option>
                </select>
            </div>
            <div ng-if="role!='GC People Admin'" class="form-group">
                <select class="form-control" ng-options="div.name for div in clusters track by div.id" ng-model="vm.cluster" ng-change="vm.regionChange()">
                    <option value="">--- Cluster ---</option>
                </select>
            </div>
<a ng-if="role!='GC People Admin'" ng-href="{{vm.reportlink}}" class="btn btn-primary" ng-class="{'disabled': vm.reportlink==''}">Export HR Monthly Report</a>
        </form>
	<p class="text-warning"></p>
<!-- <a href="" class="btn btn-primary disabled">Export Training Monthly Report</a> -->
<hr/>
<a ng-href="{{vm.gcreportlink}}" class="btn btn-primary" ng-class="{'disabled': vm.gcreportlink==''}">Export GC People Planning Report</a>
<hr/>
<a ng-href="{{vm.submissionReportLink}}" class="btn btn-primary" ng-class="{'disabled': vm.directoryReportLink==''}">Export GC Submission Checklist Report</a>

<hr/>
<a ng-if="role=='Super Admin'" ng-href="{{vm.leaderReportLink}}" class="btn btn-primary" ng-class="{'disabled': vm.leaderReportLink==''}">Export Function Leader Turnover Report</a>
<hr/>
<a  ng-href="{{vm.staffBReportLink}}" class="btn btn-primary" ng-class="{'disabled': vm.staffBReportLink==''}">Export GC Staffing Financial Summary Report</a>

<hr/>
<a  ng-href="{{vm.directoryReportLink}}" class="btn btn-primary" ng-class="{'disabled': vm.directoryReportLink==''}">Export GC Directory</a>

</div>
